/*
 * Cmd.h
 *
 *  Created on: 2012-10-8
 *      Author: yangentao@gmail.com
 */

#ifndef CMD_H_
#define CMD_H_

#include "../dep.h"
#include "CmdDef.h"



class CmdItem: public ACCEL {
public:
	CmdItem();
	virtual ~CmdItem();
public:
	CmdItem& Cmd(WORD cmd);
	CmdItem& Text(String text);
	CmdItem& Desc(String desc);

	CmdItem& Ctrl(WORD key);
	CmdItem& Alt(WORD key);
	CmdItem& Shift(WORD key);

	CmdItem& CtrlShift(WORD key);
	CmdItem& CtrlAlt(WORD key);
	CmdItem& AltShift(WORD key);
	CmdItem& CtrlAltShift(WORD key);




	String getMenuItemText();
	String getDesc();

	CmdItem& clear();
public:
	String text;
	String desc;

	int when;
	int category;
};

HACCEL loadAccel();
HMENU  createMainMenu();
#endif /* CMD_H_ */
